<?php
/*Problem Domain
To create a database access layer for UserSession class
*/

/*
UserSessionDAO is an interface
interp. represents the database access layer interface(functionality) for UserSession class
*/

interface UserSessionDAO
{
	/*UserSession -> boolean
	purpose. To save or update a given UserSession and return true on success , false otherwise*/
	public function saveOrUpdate($usersession);

	/*UserSession -> boolean
	purpose. To remove an existing UserSession and return true on success , false otherwise*/
	public function remove($usersession);

	/*void -> LostUserType
	purpose. produces the entire list of UserSession mapping in the database*/
	public function listUserSession();

}
?>
